FROM ubuntu:16.04

COPY gosu-amd64 /usr/local/bin/gosu
COPY gosu-amd64.asc /usr/local/bin/gosu.asc
COPY sources.list /etc/apt/sources.list

RUN apt-get  update && apt-get install -yqq wget

RUN cd /usr/local/bin && gpg --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys \
&& chmod +x /usr/local/bin/gosu \
&& gosu nobody true
